<template>
    <el-container style="margin-top: 20px;" >
      <el-aside width="180px" >
        <div class="title"  >
          <el-icon><Avatar /></el-icon>
          <span>个人中心</span>
        </div>
        <el-menu
        :default-active="route.fullPath"
        router
        class="el-menu-vertical-demo"
      >
  
        <el-menu-item index="/user/authentication">
          <el-icon><Menu /></el-icon>
          <span>实名认证</span>
        </el-menu-item>
        <el-menu-item index="/user/orders" >
          <el-icon><document /></el-icon>
          <span>挂号订单</span>
        </el-menu-item>
        <el-menu-item index="/user/manage">
          <el-icon><User /></el-icon>
          <span>就诊人管理</span>
        </el-menu-item>
        <el-menu-item index="/user/Account">
          <el-icon><setting /></el-icon>
          <span>账户管理</span>
        </el-menu-item>
        <el-menu-item index="/user/Feedback">
          <el-icon><Edit /></el-icon>
          <span>意见反馈</span>
        </el-menu-item>
      </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
</template>

<script setup>
import { useRoute } from 'vue-router'
import { Avatar , Menu , Document , User , Setting , Edit } from '@element-plus/icons-vue'
let route = useRoute()
</script>

<style lang="scss" scoped>
.title {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  background-color: #409eff;
  border-radius: 5px;

}
</style>